package com.xinghou.platform.model.main;

import java.io.Serializable;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * 
 * @author xuzhen
 *
 */
@Document(collection = "storeLocation_Geo")
public class StoreLocationGeo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private ObjectId _id;
	@Indexed
	private Integer storeid;
	private Double[] pos;
	
	private String typeid;
	private Integer areaid;
	private String type;
	
	private Long createtime;
	
	public StoreLocationGeo(){
		
	}
	
	@PersistenceConstructor
	public StoreLocationGeo(ObjectId _id, Integer storeid,Double[] pos, Long createtime,String typeid,Integer areaid,String type){
		this._id = _id;
		this.storeid = storeid;
		this.createtime = createtime;
		this.pos = pos;
		this.typeid = typeid;
		this.type = type;
		this.areaid = areaid;
	}

	public ObjectId get_id() {
		return _id;
	}

	public void set_id(ObjectId _id) {
		this._id = _id;
	}

	public Integer getStoreid() {
		return storeid;
	}

	public void setStoreid(Integer storeid) {
		this.storeid = storeid;
	}

	public Double[] getPos() {
		return pos;
	}

	public void setPos(Double[] pos) {
		this.pos = pos;
	}

	public Long getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Long createtime) {
		this.createtime = createtime;
	}

	public String getTypeid() {
		return typeid;
	}

	public void setTypeid(String typeid) {
		this.typeid = typeid;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
